﻿using Microsoft.EntityFrameworkCore;
using Pg2.Share;
using System.Reflection;

var builder = Host.CreateApplicationBuilder(args);
//var assemblyName = Assembly.GetExecutingAssembly().GetName().Name;
//Console.WriteLine(assemblyName);
builder.Services.AddDbContext<DatabaseContext>(options =>
{
    //options.UseSqlServer(builder.Configuration.GetConnectionString("Default"),
    //    builder => builder.MigrationsAssembly(Assembly.GetExecutingAssembly().GetName().Name));
});

var host = builder.Build();
host.Run();
